import request from '@/utils/request'

// 查询车人信息列表
export function listVehicledriver(query) {
  return request({
    url: '/system/vehicledriver/list',
    method: 'get',
    params: query
  })
}

// 查询车人信息详细
export function getVehicledriver(vehicleDriverId) {
  return request({
    url: '/system/vehicledriver/' + vehicleDriverId,
    method: 'get'
  })
}

// 新增车人信息
export function addVehicledriver(data) {
  return request({
    url: '/system/vehicledriver',
    method: 'post',
    data: data
  })
}

// 修改车人信息
export function updateVehicledriver(data) {
  return request({
    url: '/system/vehicledriver',
    method: 'put',
    data: data
  })
}

// 删除车人信息
export function delVehicledriver(vehicleDriverId) {
  return request({
    url: '/system/vehicledriver/' + vehicleDriverId,
    method: 'delete'
  })
}

// 查询车人信息详细
export function getDriverMobile(vehicleLicenseNumber) {
  return request({
    url: '/system/vehicledriver/' + vehicleLicenseNumber,
    method: 'get'
  })
}
